<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    const arr = [1.3,4,6,2,4,7,5,8]
    const b = [...new Set(arr)]
    console.log(b)
  </script>
</body>
</html>